package org.example5mock;

public class Test {
    public static void main(String[] args) {

        Spliterator<Integer> spliterator = new Spliterator<>();

        MyStream<Integer> stream = Test.stream(spliterator, false);

        System.out.println(stream.getClass());

    }

    public static <T> MyStream<T> stream(Spliterator<T> spliterator, boolean parallel) {

        return new MyReferencePipeline<>(spliterator, parallel);
    }
}
